<h1>New receipt</h1>

<% form_for(@receipt) do |f| %>
  <%= f.error_messages %>

  <p>
    <%= f.label :store %><br />
	<%= select("receipt","store_id",Store.find(:all, :order => "location ASC").collect {|s| [s.company.name + ' ' + s.location, s.id]}) %>
  </p>
  <p>
    Receipt date<br />
	<%= f.calendar_date_select :rDate, :time => true , :popup => :force %>
  </p>
  <p>
	<%= link_to 'Cancel', receipts_path %> | <%= f.submit "Create" %>
  </p>
<% end %>

